﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Client.Models;

namespace Client
{
    public static class Share
    {
        public static string DbPath;
        private static string _Theme;
        public static bool AppClose;
        //public static UserInfoModel UInfo;
        public static UserLoginModel uom = new UserLoginModel();
        public static UserInfoModel UInfo = new UserInfoModel();
        public static Queue<string[]> TabRequest = new Queue<string[]>();
        //public static UserConfigModel UserCfg = new UserConfigModel();
        //public static SysConfigModel SysCfg = new SysConfigModel();
        public static Dictionary<string, object> CurOpened = new Dictionary<string, object>();
        public static double TotalUpLink;
        public static double TotalDownLink;
        private static Network nCtrl = new Network();
        //public static string WebAddress = "http://60.18.250.78:65000/";
        public static string WebAddress = "http://www.taxhui.com/";
        
        public static bool NeedUpdate;

        #region 提交网络请求
        public static RetModel PostData(string path, Dictionary<string, string> urlParam, string data)
        {
            try
            {
                return nCtrl.PostData(WebAddress, path, urlParam, data);
            }
            catch (Exception)
            {

                throw;
            }
        }
        #endregion
    }
}
